imagelist=`kubeadm config images list 2> /dev/null | sed -n '/k8s.gcr.io/p'|awk -F '/' '{print $2}'`
images=(
$imagelist
metrics-server-amd64:v0.3.6
)
mirror=registry.aliyuncs.com
ns=google_containers
echo "[[mirror=$mirror, namespace=$ns"
for image in ${images[@]}
do
	echo "[[pull image - $image"
	docker pull $mirror/$ns/$image
	docker tag $mirror/$ns/$image k8s.gcr.io/$image
	docker rmi $mirror/$ns/$image
done
